import {toast} from './utils.js'

function post(url, data = {}, contentType='application/json'){
	return Promise((resolve,reject)=>{
		uni.request({
			url: url,
			data: data,
			method: 'POST',
			header: {
				"content-type": contentType
			},
			success(res) {
				
			},
			fail(err) {
				toast(err)
			}
		})
	})
}
module.exports = {
	post
}
